# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=lfe
pkgver=2.0.1
pkgrel=0
pkgdesc="Lisp Flavoured Erlang"
url="https://lfe.io/"
arch="all"
license="Apache-2.0"
depends="erlang"
makedepends="erlang-dev"
subpackages="$pkgname-doc"
source="https://github.com/lfe/lfe/archive/$pkgver/lfe-$pkgver.tar.gz"

build() {
	make compile
}

check() {
	./bin/lfe -e '(help)'
}

package() {
	make PREFIX="$pkgdir/usr" install

	install -Dvm644 doc/*.txt \
		-t "$pkgdir"/usr/share/doc/$pkgname/

	cd "$pkgdir"/usr/bin
	ln -svf ../lib/lfe/bin/* .
}

sha512sums="
47d062fcd1910580ba5d84f8887a27d0717cb7aae2a90fb3a7e7411fd46886dd73e342ccd4627227c70d13dcd2c5f66077d351812e9bc0c17d64e9ef65d04f96  lfe-2.0.1.tar.gz
"
